package com.bitdf.txing.order.feign;

import com.bitdf.txing.order.config.FeignInterceptor;
import com.bitdf.txing.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(
        name = "tx-mall-cart",                 // 服务名称
        configuration = FeignInterceptor.class       // 请求拦截器 （关键代码）
)
public interface OrderCartFeignService {
    @GetMapping("/txing/mall/cart/user/current/cartitems")
    List<OrderItemVo> getCurrentUserCartItems();
}
